package com.scuthnweb.action.reslinkmodule;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.scuthnweb.service.ResLinkModule;

public class DeleteResLinkAction extends ActionSupport{
	
	private Integer sid;
	
	private ResLinkModule resLinkModule;
    
	public String execute(){
		ActionContext ctx = ActionContext.getContext();
		Integer uid = (Integer)ctx.getSession().get("user_id"); 
		if(resLinkModule.deleteResLink(uid, sid))
			return SUCCESS;
		else
			return ERROR;
	}
	
	
	public Integer getSid() {
		return sid;
	}
	
	public void setSid(Integer sid) {
		this.sid = sid;
	}


	public ResLinkModule getResLinkModule() {
		return resLinkModule;
	}

	public void setResLinkModule(ResLinkModule resLinkModule) {
		this.resLinkModule = resLinkModule;
	}

}
